<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>

<link href="<%=basePath%>bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link href="<%=basePath%>bootstrap/css/style.css" rel="stylesheet">
<script src="<%=basePath%>bootstrap/js/jquery.min.js"></script>
<script src="<%=basePath%>bootstrap/js/bootstrap.min.js"></script>
<script src="<%=basePath%>bootstrap/js/scripts.js"></script>
</head>
<body>
	<form action="<%=basePath%>UserTeaReviseStu" method="post">
		<div class="bs-example">
			<table class="table table-striped table-hover">
			
				<thead>
					<tr>
						<th>序号</th>
						<th>学号</th>
						<th>姓名</th>
						<th>性别</th>
						<th>成绩</th>

					</tr>
				</thead>
				<tbody>
					
					<input type="hidden" id="listLong" name="listLong" value="${sessionScope.listLong }">
					<c:forEach items="${sessionScope.lstUsersTea }" var="eachUser"
						varStatus="st">
					<input type="hidden" id="selectUsernum" name="selectUsernum${st.index+1 }" value="${eachUser.usernum }">
					<input type="hidden" id="selectCouid" name="selectCouid" value="${eachUser.couid }">
					
						<tr>
							<td>${st.index+1 }</td>
							<td>${eachUser.usernum }</td>
							<td>${eachUser.username }</td>
							<td>${eachUser.usersex }</td>

							<td><input type="text" id="txtStuCousco" name="txtStuCousco${st.index+1 }"
								value="${eachUser.cousco}" placeholder="${eachUser.cousco}">
								
							<td><a href="UserTeaQueryStu?uid=${eachUser.usernum }">保存</a></td>
							<td></td>
						</tr>
					</c:forEach>
					
				</tbody>
			</table>

		</div>
		<div class="col-sm-offset-2 col-sm-2">
			<!-- 超链接 -->
			<a class="btn btn-default"
				href="UserTeaQuery?usernum=${loginedUsersBA.usernum }">返回</a>

			<button type="submit" class="btn btn-default">保存</button>

			<button type="reset" class="btn btn-default">重置</button>
		</div>


	</form>
</body>



</html>